export default function addButtonToToolbar(_a) {
    var _b = _a === void 0 ? {} : _a,
        id = _b.id,
        title = _b.title,
        container = _b.container,
        onClick = _b.onClick;

    var button = document.createElement("button");
    button.id = id;
    button.innerHTML = title;
    button.onclick = onClick;
    container = container !== null && container !== void 0 ? container : document.getElementById("demo-toolbar");
    container.append(button);
}